﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Administrator/SystemManage.master" AutoEventWireup="true" validateRequest="false" CodeBehind="NewsAdd.aspx.cs" Inherits="CRMSalesManagement.Manage.FrontPageManagement.NewsAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="../../kindeditor-3.5.1-zh_CN/kindeditor-min.js" type="text/javascript"></script>    
    <script type="text/javascript">
        KE.show({
            resizeMode: 0,
            id: '<%=content3.ClientID %>',
            imageUploadJson: '../../asp.net/upload_json.ashx',
            fileManagerJson: '../../asp.net/file_manager_json.ashx',
            allowFileManager: true,
            afterCreate: function (id) {
                KE.event.ctrl(document, 13, function () {
                    KE.util.setData(id);
                    document.forms['form1'].submit();
                });
                KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                    KE.util.setData(id);
                    document.forms['form1'].submit();
                });
            }
        });
function btnReset_onclick() {

}

function btnReset_onclick() {

}

    </script>
       <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:PostBackTrigger ControlID="btnSubmit" />
        </Triggers>
        <ContentTemplate>
       
    <div style=" margin-top:20px">
<!--左边-->
    <div style=" width:115px;float:left; text-align:right; font-size:12px">
      <div style=" height:25px;padding-top:5px">文章标题：</div>
      <div style=" height:25px;padding-top:5px">供稿人：</div>
      <div>文章内容：</div>
     
      </div>
<!--右边-->
    <div style=" width:661px; float:right">
    <div style=" height:30px; padding:0"> 
        <asp:TextBox ID="txtTitle" runat="server" Height="18px" 
            Width="268px" MaxLength="25"></asp:TextBox>
            <span><asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*" Font-Size="12px"></asp:Label>
        </span>
        <asp:Label ID="lblTitle" runat="server" Text="" Font-Size="12px" ForeColor="red"></asp:Label>
           <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtTitle" ErrorMessage="文章标题不能为空" Font-Size="12px" ForeColor="red"></asp:RequiredFieldValidator>--%>
            </div>

      <div style=" height:30px">
          <asp:TextBox ID="txtAuthor" runat="server" Height="18px" 
              Width="200px" MaxLength="10"></asp:TextBox>
      <span>
      <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Font-Size="12px"></asp:Label>
      </span>
          <asp:Label ID="lblAuthor" runat="server" Text="" Font-Size="12px" ForeColor="red"></asp:Label>
         <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
              ControlToValidate="txtAuthor" ErrorMessage="供稿人不能为空" Font-Size="12px" ForeColor="red"></asp:RequiredFieldValidator>--%>
      </div>
       <div><textarea id="content3" name="content1" cols="1" rows="1" style="width: 661px; height: 400px;
            line-height: 150%" runat="server" dir="ltr" ></textarea></div>
            <div><center><asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*" Font-Size="12px"></asp:Label>
               <asp:Label ID="lblContent" runat="server" Text="" Font-Size="12px" ForeColor="red"></asp:Label> <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="content3" ErrorMessage="文章内容不能为空" Font-Size="12px" ForeColor="red"></asp:RequiredFieldValidator>--%>
                </center></div>
       <div style=" margin-left:260px; margin-top:30px">
           <span>
           <asp:Button ID="btnSubmit" runat="server" Height="24px" Width="60px" 
               Text="保存" onclick="btnSubmit_Click" /></span>
          <span style=" margin-left:60px">
           <asp:Button ID="btnReset" runat="server" Height="24px" Width="60px" Text="重置" onclick="btnReset_Click" 
              /></span>
        </div>
        <div style=" text-align:center; padding-top:15px;"><asp:Label ID="lblSaveResult" runat="server" ForeColor="Red" Font-Size="12px"></asp:Label></div>
    </div>
</div> </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
